package org.jeecg.modules.dlxj.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.dlxj.entity.DlxjPole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.dlxj.vo.PoleCircuitryVo;
import org.jeecg.modules.dlxj.vo.PoleCodeAndCirCode;

/**
 * @Description: 杆塔表
 * @Author: lzl
 * @Date:   2022-07-20
 * @Version: V1.0
 */
public interface DlxjPoleMapper extends BaseMapper<DlxjPole> {

    /**
     * 柑橘杆塔id，获得线路名称
     * @param poleIds
     * @return
     */
    List<PoleCircuitryVo> getCirName(@Param("poleIds")List<String> poleIds);

    /**
     * 线路禁用
     * @param circuitryCode
     */
    void close(String circuitryCode);


    /**
     * 线路启用
     * @param circuitryCode
     */
    void open(String circuitryCode);

    void savePoleCodeAndCirCode(PoleCodeAndCirCode poleCodeAndCirCode);

    String getCirCode(String cirName);

    void updatePoleAndCir(PoleCodeAndCirCode poleCodeAndCirCode);

    void deletePoleAndCir(String id);

    void deleteBatchPoleAndCir(List<String> list);




}
